﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using AppLayer;
using SpotItComponents;
using SpotItServerAPI;
using Vitruvian.Services;

namespace SpotIt
{
    /// <summary>
    /// Interaction logic for Spotit_Multi_waitroom.xaml
    /// this class will allow the user to edit game options if they are the host of the game. if they are not, then they will just wait for the game to begin
    /// Richard: this is where most of the magic is going to happen. feel free to engineer the components and access the api here 
    /// </summary>
    public partial class Spotit_Multi_waitroom : Window
    {
        //these private variable should enable you to access any API's that you need
        Session session;
        Services services;//review the services code in appLayer. we will most likely use the GameManager property of services exesively in this class
        private GameMonitor myGameMonitor;
        AudioFiles theAudioFiles = AudioFiles.Instance;

        public Spotit_Multi_waitroom(Session session, Services services, GameMonitor gameMonitor)
        {
            InitializeComponent();
            this.session = session;
            this.services = services;
            this.myGameMonitor = gameMonitor;
        }

        private void LeaveButton_Click(object sender, RoutedEventArgs e)
        {
            theAudioFiles.theFiles[2].Play();
            this.Close();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {

        }

        private void StartReadyButton_Click(object sender, RoutedEventArgs e)
        {
            theAudioFiles.theFiles[2].Play();
        }

        

        
    }
}
